﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Program
    {
//2、猫、狗、鸭、猴，（吃、游泳、爬树
        static void Main(string[] args)
        {
            Dog v = new Dog();
            SwingT(v);

            Duck b = new Duck();
            SwingY(b);

            Moenk d = new Moenk();
            SwingM(d);

            Cat e = new Cat();
            SwingL(e);

           
            static void SwingT(Isw a)
            {
                a.Swing();

            }
            static void SwingY(Isw c)
            {
                c.Swing();

            }
            static void SwingM(Ipa d)
            {
                d.Pa();

            }
            static void SwingL(Ipa e)
            {
                e.Pa();

            }
            Console.ReadKey();
        }
    }
}
